package cn.sciento.farm.devicemanager.gateway.model.uplink;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

@Data
public class LorawanUplinkPacket {

    /**
     * {
     * "dev_eui":"rOHyAAAAAAE=",
     * "join_eui":"q83vEjRWeJA=",
     * "f_cnt":34,
     * "adr":true,
     * "tx_info":{"frequency":487100000,"ModulationInfo":{"LoraModulationInfo":{"bandwidth":125,"spreading_factor":7,"code_rate":"4/5"}}}}
     */
    @JSONField(name = "dev_eui")
    private String devEui;

    @JSONField(name = "join_eui")
    private String joinEio;

    @JSONField(name = "f_cnt")
    private Integer fCnt;

    @JSONField(name = "adr")
    private Boolean adr;

    @JSONField(name = "tx_info")
    private Object txInfo;
}
